home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Controls / Visual Basic Controls.iso / vbcontrol / klsucnvt / readme.txt < prev   
Encoding:
Text File  |  1998-02-16  |  3.1 KB  |  114 lines

  1. UNIT CONVERTER DLL
  2.  
  3. Thank you for showing interest in the Unit Conversion DLL.  This ActiveX Code 
  4. Component provides a simple set of functions for converting between different 
  5. types of units in several different categories.
  6.  
  7. The Categories and units currently handled (as of 11/1/97) are:
  8.   Length - kilometers (KM)
  9.      - nautical miles (NM)
  10.      - feet (FT)
  11.      - kilofeet (KF)
  12.      - hectometers (HM)
  13.      - yards (YD)
  14.      - meters (M)
  15.      - statute miles (SM)
  16.      - inches (IN)
  17.      - centimeters (CM)
  18.  
  19.   Temperature - Fahrenheit (F) 
  20.           - Celsius (C)
  21.           - Kelvin (K)
  22.  
  23.   Speed - meters per second (MPS)
  24.     - kilometers per hour (KPH)
  25.     - knots (KTS)
  26.     - miles per hour (MPH)
  27.  
  28.   Time - day (DAY)
  29.        - hour (HR)
  30.        - minutes (MIN)
  31.        - seconds (SEC)
  32.        - week (WK)
  33.        - month (MON)
  34.  
  35.   Angle - radian (RAD)
  36.     - degree (DEG)
  37.     - mils (MIL)
  38.  
  39.   Mass - kilogram (KG)
  40.        - pound (LB)
  41.        - ton (TON)
  42.        - metric ton (MT)
  43.        - ounce (OZ)
  44.        - gram (G)
  45.  
  46.   Energy - joule (J)
  47.      - calories (CAL)
  48.      - btu's (BTU)
  49.      - erg's (ERG)
  50.      - foot-pounds (FTLB)
  51.      - kilocalories (KCAL)
  52.      - kilowatt hours (KWH)
  53.      - electron volts (EV)
  54.  
  55.   Pressure - pascals (PA)
  56.        - atmospheres (ATM)
  57.        - torr, milimeters of mercury (TORR)
  58.        - pounds per square inch (PSI)
  59.        - bars (BAR)
  60.        - kilopascals (KPA)
  61.  
  62.   Volume - liter (LT)
  63.      - gallon (GA)
  64.      - quart (QT)
  65.      - fluid ounces (OZ)
  66.      - pint (PT)
  67.  
  68. The letters in parenthesis above are what strings you pass to the function to
  69. use that specific unit.
  70.  
  71. The dll provides 280 conversion possibilities.  If you have a specific 
  72. category(s) or unit(s) that you require, you can request it to be included with 
  73. your registered copy.
  74.  
  75. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  76. To Use the DLL in a VB5 program:
  77. 1. Register the DLL on your system (you can use regsvr32.exe)
  78. 2. Click on Project -> References then select the 'UnitConverterDLL' entry.
  79. 3. Declare a module level variable as New UnitConverter.
  80. 4. Use it as any other class variable, as in the following example:
  81.  
  82.     Private ConvertDLL as New UnitConverter
  83.     Dim dblReturnValue as Double
  84.  
  85.     DblReturnValue = ConvertDLL.Temperature("C", 12.87, "F")
  86.  
  87. The above code will convert 12.87 degrees Celsius to Fahrenheit.
  88. All of the functions follow the same input parameter format:
  89.  
  90. (Input Unit as string, Input Value as double, Output Unit as string) as double
  91.  
  92. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  93. Included in the klsucnvt.zip package are the following files:
  94.  
  95.   trial.frm - the VB5 form that demonstrates the use of the dll
  96.   klsucnvt.dll - the unregistered version of the dll
  97.   readme.txt - this readme file
  98.  
  99. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  100. To obtain a registered version of the Unit Conversion DLL (without those hideous 
  101. nag screens), send $10 check or money order to:
  102.  
  103. Karl Stuempfle
  104. 1900 Harewood Court
  105. Edgewood, Maryland 21040
  106. USA
  107.  
  108. Make checks payable to: Karl Stuempfle
  109. For custom units/categories add $1 per unit and $3 for each new category. (ex. - 
  110. to purchase the dll with an additional category "X" that contains 2 units would 
  111. be $15 (10 + 3 + 1 + 1))
  112.  
  113. For additional information: kstuempfle@geocities.com
  114.